function upload(url, method, formdata) {
    let data = '';
    $.ajax({
        type: method,
        url: 'http://119.23.46.241:2121' + url,
        data: formdata,
        processData: false,
        async: false,
        contentType: false,
        beforeSend: function (XMLHttpRequest) {
            let token = sessionStorage.getItem('Authorization')
            token = token ? token : '';
            XMLHttpRequest.setRequestHeader('Authorization', token)
        },
        success: function (result) {
            data = result;
        },

        error: function (result) {
            data = result;
        }
    });
    return data
}



